HAL I2C state and error functions migration ¶
This section provides information about the HAL I2C state and error functions migration.
HAL I2C get state et get mode ¶
Note
The functions
HAL_I2C_GetState()
and
HAL_I2C_GetMode()
remain unchanged.
|
Description |
HAL1 |
HAL2 |
|---|---|---|
|
Retrieve the current state of the I2C |
|
|
|
Returns a value representing the current mode |
|
|
HAL I2C get error ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_I2C_GetError
|
HAL_I2C_GetLastErrorCodes
|
Related concept: Revised and optimized HAL error management